package com.ss.android.common.util;

public abstract class Singleton<T> {
    private T mInstance;

    public Singleton() {

    }

    public abstract T create();

    public synchronized final T get() {
            if(this.mInstance == null) {
                this.mInstance = this.create();
            }
            return this.mInstance;
    }
}

